#include "config.h"

UserLogin LAS;
QString strToMd5(const QString &str)
{
    static const QString BEFORE_CODE = QStringLiteral("luanshow");
    static const QString AFTER_CODE = QStringLiteral("las");
    QString strMd5;
    QByteArray qba;
    QString befStr= BEFORE_CODE + str + AFTER_CODE;
    qba = QCryptographicHash::hash(befStr.toLatin1(), QCryptographicHash::Md5);
    qba = QCryptographicHash::hash(qba, QCryptographicHash::Md5);
    strMd5.append(qba.toHex());
    return strMd5;
}
